package com.jshcbd.modules.asset.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jshcbd.framework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhoucd
 * @date
 * @description
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AssetExcelDto {
    @Excel(name = "合同号")
    private String contractNamber;


    @Excel(name = "入库日期")
    private Date inDate;

    @Excel(name = "批次")
    private String batch;

    @Excel(name = "资产名称")
    private String name;


    @Excel(name = "购买单位")
    private String buyer;


    @Excel(name = "规格型号")
    private String model;


    @Excel(name = "计量单位")
    private String unit;


    @Excel(name = "资产照片")
    private String photo;


    @Excel(name = "使用状态",replace = {"1_正常","2_损坏","正常_1","损坏_2"})
    private Integer useState;



    @Excel(name = "单价")
    private BigDecimal price;


    @Excel(name = "领用日期")
    private Date receiveDate;



    @Excel(name = "分类编码")
    private String classesCode;


    @Excel(name = "使用期限")
    private Date usefulLife;


    @ApiModelProperty(value = "备注")
    private String  note;


}
